<?php

namespace app\index\model;

use think\Model;
use think\Db;

class User extends Model
{
	/**
	 * [addUser description]
	 * @param [type] $data [description]
	 */
    public function addUser($data)
    {

        $data['password'] = fly_md5($data['password']);

        $data['ctime'] = time();

        $data['face'] = "static/index/images/face.jpg";

        $this->data($data);

        $res = $this->save();

        return $res;
    }
}